package elitech.vietnam.myfashion.extend;

import android.view.View;
import android.widget.TabHost.TabContentFactory;
import elitech.vietnam.myfashion.TabsActivity;

public class TabFactory implements TabContentFactory {
	
	private static final String BESTOFDAY = "BOD";
	private static final String BESTOFWEEK = "BOW";
	private static final String CATEGORY = "CAT";
	private static final String STYLER = "STY";
	private static final String MYSTYLE = "MST";
	private static final String MYSHOPPING = "MYS";
	
	private TabsActivity mContext;
	private String mTag;
	
	public TabFactory(TabsActivity context, String tag) {
		this.mContext = context;
		this.mTag = tag;
	}

	@Override
	public View createTabContent(String tag) {
		if(mTag.equals(BESTOFDAY)){
			View view = new View(mContext);
			return view;
		}
		if(mTag.equals(BESTOFWEEK)){
			View view = new View(mContext);
			return view;
		}
		if(mTag.equals(CATEGORY)){
			View view = new View(mContext);
			return view;
		}
		if(mTag.equals(STYLER)){
			return new View(mContext);
		}
		if(mTag.equals(MYSTYLE)){
			return new View(mContext);
		}
		if(mTag.equals(MYSHOPPING)){
			return new View(mContext);
		}
		return new View(mContext);
	}
}